package com.yao.club.service;

import com.yao.club.entity.UserEntity;
import com.yao.club.entity.dto.UserFollowRecord;
import com.yao.club.entity.result.ResponseEntity;
import com.yao.club.entity.result.ResultEntity;
import com.yao.club.entity.vo.UserProfileVO;
import com.yao.club.mapper.UserMapper;
import com.yao.club.reposittory.UserFollowRecordRepository;
import com.yao.club.utils.ResponseUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


public interface FriendsService {
    /**
     * 关注和取消关注
     * @param memberId
     * @param username
     * @return
     */
     ResponseEntity<Boolean> follow(String memberId, String username);
    /**
     * 根据关键字查询用户并显示用户关系
     * @param nickname
     * @param pageNum
     * @param pageSize
     * @return
     */
    ResponseEntity<ResultEntity<UserProfileVO>> searchUsersByNickname(String nickname, Integer pageNum, Integer pageSize, String username);

    /**
     * 查询用户信息
     * @param memberId
     * @param username
     * @return
     */
    ResponseEntity<UserProfileVO> getUserInfo(String memberId, String username);
}
